
package JET.Events;

/**
 * Listener allowing reaction for body events, such as collisions.
 *
 * @author 057Ry
 */
public interface BodyEventListener {

    /**
     * Called when two bodies collision begins.
     * (Penetration between body1 and body2 is found)
     *
     * @param evt Event containing collision details.
     */
    void collisionDetected(BodyEvent evt);

    /**
     * Called when collison finishes.
     * (There is no longer any penetration of body1 and bosy2.)
     *
     * @param evt Event containing collision details.
     */
    void collisionFinished(BodyEvent evt);

}
